<template>
	<view class="diy-search">
		<view class="inner" @click="handleSearchClick">
			<view class="search-input">
				<text class="search-icon iconfont icon-search"></text>
				<text>搜索你要找的商品</text>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		name: "search",
		data() {
			return {

			};
		},
		methods: {
			handleSearchClick() {
				console.log('跳转到搜索页面')
			}
		}
	}
</script>

<style lang="scss">
	.diy-search {
		background: #f1f1f2;
		padding: 20rpx 20rpx;
		font-size: 26rpx;

		.inner {
			height: 60rpx;
			background: #fff;
			overflow: hidden;

			&.radius {
				border-radius: 10rpx;
			}

			&.round {
				border-radius: 60rpx;
			}

			.search-input {
				height: 60rpx;
				line-height: 60rpx;
				color: #999;
				padding: 0 20rpx;
				text-align: center;

				.search-icon {
					margin-right: 8rpx;
				}
			}
		}
	}
</style>